const express = require('express')
const bodyParser = require('body-parser')
const { handleUploadData } = require('../controller/setData')

let setData = express.Router()

setData.use( bodyParser.urlencoded({
    extended: false
}) )
setData.use( bodyParser.json() )

setData.post('/upload', handleUploadData )

module.exports = setData